#Part 1: fun with strings. a)
def palindrome?(string)
	s = string.downcase.gsub(/\W/, "")
	s == s.reverse
end
#Part 1: fun with strings. b)
def count_words(string)
	hsh = Hash.new(0)
	a = string.downcase.split(/\b/).map{|x| x.gsub(/\W/, "")}
	a.delete("")
	a.each{|x| hsh[x] += 1 }
	hsh
end